obj-m := hr_time.o
hr_time-objs:= hrtime.o

KDIR:=/home/share/work/ac/rk3576-linux-sdk/kernel 

COMPILER=/home/share/work/ac/rk3576-linux-sdk/buildroot/output/rockchip_rk3576_ipc/host/bin/aarch64-buildroot-linux-gnu-gcc
LD_PATH=/home/share/work/ac/rk3576-linux-sdk/buildroot/output/rockchip_rk3576_ipc/host/bin/aarch64-buildroot-linux-gnu-ld
AR_PATH=/home/share/work/ac/rk3576-linux-sdk/buildroot/output/rockchip_rk3576_ipc/host/bin/aarch64-buildroot-linux-gnu-ar
ARCH_TYPE=arm64

all:
	make CC=$(COMPILER) LD=$(LD_PATH) AR=$(AR_PATH) ARCH=$(ARCH_TYPE) -C $(KDIR) M=$(PWD)  modules

clean:
	make CC=$(COMPILER) LD=$(LD_PATH) ARCH=$(ARCH_TYPE) -C $(KDIR)  M=$(PWD)  clean
